#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main()
{
    double arr[5];
    for (int i = 0; i < 5; i++)
    {
        scanf("%lf", &arr[i]);
    }
    for (int i = 0; i < 5; i++)
    {
        if (arr[i] == 0)
        {
            double temp = arr[i];
            arr[i] = arr[0];
            arr[0] = temp;

        }
    }
    int i = 0;
    if (arr[0] == 0)
    {
         i = 1;
    }
    else
    {
        i = 0;
    }
    int j = 4;
    while (j)
    {
        for ( i ; i < j; i++)
        {
            
            if (arr[i] >= arr[i + 1])
                continue;
            else
            {
                double temp = arr[i];
                arr[i] = arr[i + 1];
                arr[i + 1] = temp;
            }

        }
        j--;
    }
        for (int i = 0; i < 5; i++)
        {
            if (arr[i] < 0) {
                continue;
            }
            printf("%.6g ",arr[i]);
        }
        return 0;
}